package com.lvcoding.service.impl;

import com.lvcoding.dao.UserDao;
import com.lvcoding.bean.User;
import com.lvcoding.service.UserService;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author wuyanshen
 * @discription 描述
 * @date 2020-07-08 5:45 下午
 */
@Transactional
public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void save(User user) {
        userDao.save(user);
    }
}
